const fs = require('fs');
const path = require('path');
exports.getMime = function (extname) {
    fs.readFile(path.join(__dirname, "mime.json"), function (err, data) {
        if (err) {
            return false
        } else {
            const Mimes = JSON.parse(data.toString());

            console.log(Mimes[extname]);
        }
    })
};

